package com.vincent.dao;

import com.vincent.model.Admin;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component("adminMapper")
public interface AdminMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Admin record);

    int insertSelective(Admin record);

    Admin selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Admin record);

    int updateByPrimaryKey(Admin record);

    Admin selectByUserName(@Param("userName") String userName);

    Admin selectByUserNameAndPwd(@Param("username") String username, @Param("password") String password);
}